
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<META NAME="robots" CONTENT="INDEX, FOLLOW">

<title><?= $template['title'];?></title>
<?= $template['metadata'];?>

<link rel="shortcut icon" href="<?=base_url();?>assets/ico/fav.png">
<link rel="canonical" href="<?= $canonical; ?>" />

<!-- Bootstrap core CSS -->
<link href="<?=base_url();?>assets/css/bootstrap.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="<?=base_url();?>assets/css/custom.css" rel="stylesheet">

<?= $this->commoncall->getSetting('google_analytics');?>
<?= $this->commoncall->getSetting('state_counter_code');?>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="<?=base_url();?>assets/js/html5shiv.js"></script>
      <script src="<?=base_url();?>assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>

	<div id="wrap">

		<div class="navbar navbar-fixed-top">
			<!-- TOP NAV -->
			<?php
			if (isset($template['partials']['topnav']))
				echo $template['partials']['topnav'];
			?>
			<!-- END OF TOP NAV -->
			
			
			<!-- BREADCRUMB -->
			<?php
			if (isset($template['partials']['breadcrumb']))
				echo $template['partials']['breadcrumb'];
			?>
			<!-- END OF BREADCRUMB -->

		</div>



		<div class="inner-body">
			<div class="container">


				<!-- MIDDLE -->
				<div class="col-lg-8 middle-panel" >

					<!-- Set Location Modal  -->
					<?php 
					echo Modules::run('listing/profile/view_profile',$profileID = $profileID);
					?>
					<!-- End of Set Location Modal -->

					
						<div class="profile clearfix" style="border: 1px solid #dfdfdf">
							<div class="col-lg-6 ">
								<!-- Related Listing (Local) -->
								<?php
								if (isset($template['partials']['related_listing_local']))
									echo $template['partials']['related_listing_local'];
								?>
								<!-- End of Related Listing (Local) -->

							</div>

							<div class="col-lg-6 pull-right">

								<!-- Related Listing (Other) -->
								<?php
								if (isset($template['partials']['related_listing_other']))
									echo $template['partials']['related_listing_other'];
								?>
								<!-- End of Related Listing (Other) -->
							</div>
						</div>
					

				</div>
				<!-- MIDDLE -->








				<!--  RIGHT -->
				<div class="col-lg-4">
					<div class="right-panel" style="border: none">

						<!--  MAP -->



						<!-- Recent Listing  -->
						<?php
						if (isset($template['partials']['recent_listing']))
							echo $template['partials']['recent_listing'];
						?>
						<!-- Recent Listing  -->


					</div>
				</div>
			</div>
			<!-- Container -->

		</div>
		<!-- Inner Body -->





	</div>
	<!-- /.Wrapper -->


	<!-- Footer -->
	<?php
	if (isset($template['partials']['footer']))
		echo $template['partials']['footer'];
	?>
	<!-- End of footer -->


	<!-- Modal Window -->
	<?php
	if (isset($template['partials']['modal_window']))
		echo $template['partials']['modal_window'];
	?>
	<!-- End of footer -->
	
	<!-- Map Profile -->
	<?php
	if (isset($template['partials']['map_profile']))
		echo $template['partials']['map_profile'];
	?>
	<!-- End of map Profile -->
	
	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<?=base_url(); ?>assets/js/jquery.js"></script>
	<script src="<?=base_url(); ?>assets/js/bootstrap.min.js"></script>
	<script src="<?=base_url(); ?>assets/js/yp.js"></script>
</body>
</html>
